package com.teradyne.merlin2.ui.client.activities;

import com.google.gwt.activity.shared.AbstractActivity;
import com.google.gwt.event.shared.EventBus;
import com.google.gwt.place.shared.Place;
import com.google.gwt.user.client.ui.AcceptsOneWidget;
import com.teradyne.merlin2.ui.client.views.QuoteListView;

public class QuoteListActivity extends AbstractActivity implements QuoteListView.Presenter, ActivityCustom {

	private final QuoteListView view;
	
	private Place place;

	public QuoteListActivity(QuoteListView view) {
		this.view = view;
	}

	@Override
	public void start(final AcceptsOneWidget container, EventBus eventBus) {
		container.setWidget(view.asWidget());
		view.setPresenter(QuoteListActivity.this);
	}

	@Override
	public void setPlace(Place place) {
		this.place = place;
	}

	@Override
	public Place getPlace() {
		return place;
	}


}